
import java.util.Set;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Wallace
 */
public class SimpleTest {

    public static void main(String args[]){
            
            Graph<String> g = new Graph<String>();
            g.addNode("a");
            g.addNode("b");
            g.addNode("c");
            g.addEdge("a", "b", Graph.NO_ORIENTED);
            g.addEdge("a", "b", Graph.ORIENTED);
            g.addEdge("c", "b", Graph.ORIENTED);
            g.addEdge("a", "c",12 ,Graph.ORIENTED);
            Set nodes = g.getAllNode();
            System.out.println("nós totais: "+nodes.size());
            for(Object node : nodes){
               System.out.print(node.toString()+", ");
            }
            g.removeEdge("b", null, Graph.NO_ORIENTED);
    }

}
